package com.patter.demo.singleton;

/**
 * @Author create by xcb 2023/1/29 14:37
 */
public class SingleObject {

    private static final SingleObject instance = new SingleObject();

    private SingleObject() {
    }

    public static SingleObject getInstance() {
        return instance;
    }

    public void showMessage() {
        System.out.println("Hello World!");
    }
}
